home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
F1 Licenseware
/
F1 Licenseware - Volume 1.iso
/
disks
/
050a.dms
/
050a.adf
/
EXAMPLE_PROGRAMS
/
example13.AMOS
/
example13.amosSourceCode
Wrap
AMOS Source Code
|
1992-02-26
|
2KB
|
46 lines
'==================
Rem EXAMPLE13.Amos
'==================
Rem Setting up your own custom screen
Rem This is the line that does it all, the first number (0) the screen id
Rem for your reference. The 250 is the width of the screen in pixels.
Rem the 80 is the height and the 4 is the amount of colours required,
Rem you can select lowres or hires, tinker with these numbers and see what
Rem what happens. You can't do any harm.
'---------------------------------------------------------------------------
Screen Open 0,250,80,4,Lowres
Rem The following block of code should now be familiar to you.
'-------------------------------------------------------------
Curs Off : Centre "THIS IS NOW SCREEN 0"
Print : Print : Centre "SCREEN OPEN 0,150,40,4,LOWRES"
Print : Print : Centre "TRY MOVING THE MOUSE AROUND"
Print : Print : Centre "Press any key"
Clear Key : Wait Key
Rem A full view hires screen
'----------------------------
Screen Open 0,640,256,8,Hires
Rem this block of code should also be easy to follow
Rem if it isn't you need to re-read the relevent chapters.
'---------------------------------------------------------
Curs Off : Paper 7 : Cls 7
Centre "This is a full Hi res screen"
Locate 0,10
Centre "Good for text intensive programs such as a Word processor."
Locate 0,15 : Centre "This gives 80 characters across the screen instead of the usual 40."
Locate 0,20 : Centre "Now press a key to revert back to the default Amos screen."
Clear Key : Wait Key
Rem This command returns everthing to Amos's system defaults including screens.
'------------------------------------------------------------------------------
Default